executing .sh file from java program [migrated]

Posted by user778900 on Programmers See other posts from Programmers or by user778900
Published on 2011-06-24T07:19:47Z Indexed on 2011/06/24 8:30 UTC
Read the original article Hit count: 231

Filed under:

i have a .sh file stored in some linux system.the full path of the file is "/comviva/CPP/Kokila/TransactionHandler/scripts/stopTH.sh". i am tring to execute it by Runtime.getRuntime().exec("/comviva/CPP/Kokila/TransactionHandler/scripts/stopTH.sh"). but it is giving some exception. i want to execute that file from my java program in windows mechine. is it possible.?if yes then plese give me some code ..

thanks koushik

© Programmers or respective owner

Related posts about java